package com.findu.activity;

import com.example.findu.R;
import com.example.findu.R.drawable;
import com.example.findu.R.id;
import com.example.findu.R.layout;
import com.findu.control.Public_title;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

/**
 * 
* @ClassName: Activity_relatives_Fusion 
* @Description: TODO(详细资料中的时光轴页面) 
* @author A18ccms a18ccms_gmail_com 
* @date 2015-11-3 上午10:02:22 
*
 */
public class Activity_relatives_Fusion extends Activity implements OnClickListener{
	//声明标题
	private Public_title public_title;
	private View title_view;
	
	private ImageView title_ImageRight;
	private ImageView title_leftImage;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_relatives__fusion);
		
		//初始化组件
		init_Method();
	}
	
	/**
	 * 初始化各控件
	 */ 
	private void init_Method() {
		// TODO Auto-generated method stub
		
		//初始化标题
		title_view = findViewById(R.id.activity_relatives_fusion);
		public_title = new Public_title(title_view);
		public_title.setTextView("时间轴");
		
		//标题控件初始化
		title_leftImage = (ImageView) title_view.findViewById(R.id.public_title_liftImage);
		title_leftImage.setBackgroundResource(R.drawable.back);
		title_leftImage.setOnClickListener(this);
		
		title_ImageRight = (ImageView) title_view.findViewById(R.id.public_title_rightImage);
		title_ImageRight.setBackgroundResource(R.drawable.add);
		title_ImageRight.setOnClickListener(this);
		
		
		
	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		switch (arg0.getId()) {
		
		//标题左边图标
		case R.id.public_title_liftImage:
			finish();
			break;
			
		//标题右边图标
		case R.id.public_title_rightImage:
			finish();
			break;

		default:
			break;
		}
	}

}
